package cn.szabadsag.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author yangcong
 * @date 2022年03月21日 11:02
 * @since
 */
public class PrintTimeJob implements Job {


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        String msg = jobExecutionContext.getMergedJobDataMap().getString("msg");

        System.out.println(new Date() + msg);
    }
}
